package com.ruoyi.project.syl_zjw.newcheck.service.impl;

import com.ruoyi.project.syl_zjw.newcheck.domain.MoneyOrder;
import com.ruoyi.project.syl_zjw.newcheck.domain.MoneyOrderQueryCondition;
import com.ruoyi.project.syl_zjw.newcheck.domain.OrderMoney;
import com.ruoyi.project.syl_zjw.newcheck.mapper.NewCheckMapper;
import com.ruoyi.project.syl_zjw.newcheck.service.INewCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 检查管理：新开检查
 * @author:author
 * @date: 16:38 2021/7/14
 */
@Service
public class NewCheckServiceImpl implements INewCheckService {
    @Autowired
    private NewCheckMapper newCheckMapper;
    /**
     * 查询检查项目信息
     * @return
     */
    @Override
    public List<OrderMoney> findOrderMoneyList() {
        return newCheckMapper.selectOrderMoneyList();
    }
    /**
     * 通过检查项目名称或检查订单号查找患者信息
     * @return
     */
    @Override
    public MoneyOrder findMoneyOrderOne(MoneyOrderQueryCondition moneyOrderQueryCondition) {
        return newCheckMapper.selectMoneyOrderOne(moneyOrderQueryCondition);
    }
    /**
     * 根据条件修改患者状态是否开始检查
     * @param moneyOrderQueryCondition
     * @return
     */
    @Override
    public int changeStatus(MoneyOrderQueryCondition moneyOrderQueryCondition) {
        return newCheckMapper.changeStatus(moneyOrderQueryCondition);
    }
}
